import service from "@/utils/request";

export const getUserList = (params) => {
  return service({
    url: '/disease/getUserList',
    method: 'get',
    params
  })
}

export const getScUserList = (params) => {
  return service({
    url: '/adminUser/getScUserList',
    method: 'get',
    params
  })
}

export const getAllUserList = (params) => {
  return service({
    url: '/adminUser/getAllUserList',
    method: 'get',
    params
  })
}

export const getUserInfoByID = (params) => {
  return service({
    url: '/adminUser/getUserInfoByID',
    method: 'get',
    params
  })
}

export const updateUserInfo = (data) => {
  return service({
    url: '/adminUser/updateUserInfo',
    method: 'put',
    data: data
  })
}


export const getUserRecord = (params) => {
  return service({
    url: '/disease/getUserRecord',
    method: 'get',
    params
  })
}


export const setUserRecord = (data,params) => {
  return service({
    url: '/disease/setUserRecord',
    method: 'put',
    data,
    params
  })
}


export const getArticle = () => {
  return service({
    url: '/disease/getArticle',
    method: 'get'
  })
}


export const excelUserList = (params) => {
  return service({
    url: '/disease/excelUserList',
    method: 'get',
    params
  })
}

export const openVipApi = (params) => {
  return service({
    url: '/disease/openVip',
    method: 'get',
    params
  })
}


export const userHealthApi = (params) => {
  return service({
    url: '/disease/userHealth',
    method: 'get',
    params
  })
}

export const setUserPoints = (params) => {
  return service({
    url: '/disease/setUserPoints',
    method: 'get',
    params
  })
}


export const getHealthRecords = (params) => {
  return service({
    url: '/data/getHealthRecords',
    method: 'get',
    params
  })
}

export const getHealthData = (params) => {
  return service({
    url: '/disease/getHealthData',
    method: 'get',
    params
  })
}

